<%@page import="member.MemberVo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>view.jsp</title>

<script>

function getId(id){ return document.getElementById(id)}
function init(){//window.onload=function(){}
	getId('btnList').onclick=function(){
		location.href='index2.jsp?inc_content=./jsp/list.jsp';
	}
	getId('btnModify').onclick=function(){
		var mid= getId('mid').value;
		location.href='index2.jsp?inc_content=./jsp/modify.jsp&mid='+mid;

	}
	getId('btnDelete').onclick=function(){
		var mid= getId('mid').value;
		location.href='index2.jsp?inc_content=./jsp/delete.jsp&mid='+mid;
	}

	
}
</script>

</head>
<body>


<jsp:useBean id="bean" class="member.Login" scope="page"/>
<jsp:setProperty property="*" name="bean"/>

<% MemberVo m=bean.view();
if(m==null){
	out.print("<li>관련 정보가 삭제되었거나 없습니다.");
	out.print("<li>회원조회 메뉴를 클릭한 후 작업하세요!");
	return;
	
	}
%>
	
<h1>회원 상세정보</h1>
<ul>
	<li>아이디:<output id='mid' ><%=m.getMid() %></output></li>
	<li>암호 : <%=m.getPwd() %></li>
</ul>

<input type="button" value='목록' id='btnList'>
<input type="button" value='수정' id='btnModify'>
<input type="button" value='삭제' id='btnDelete'>
<script>init();</script>

</body>
</html>